package com.messe.base.models;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 8368877822570670799L;
	private String messageId;
	private String messageString;
	private String messageStringEn;

	private String creator;
	private String editor;
	private String org;
	
	private Integer type;
	private Timestamp createdStamp;
	private Timestamp lastUpdatedStamp;
	
	private String title;
	private String titleEn;
	private Long startst;
	private Long endst;
	
	private Set<SenderReceiverMessageRel> senderReceiverMessageRels = new HashSet<SenderReceiverMessageRel>(0);

	// Constructors

	/** default constructor */
	public Message() {
	}

	/** minimal constructor */
	public Message(String messageId, String messageString,
			Timestamp createdStamp, Timestamp lastUpdatedStamp) {
		this.messageId = messageId;
		this.messageString = messageString;
		this.createdStamp = createdStamp;
		this.lastUpdatedStamp = lastUpdatedStamp;
	}

	// Property accessors

	public String getMessageId() {
		return this.messageId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public String getMessageString() {
		return this.messageString;
	}

	public void setMessageString(String messageString) {
		this.messageString = messageString;
	}

	public Timestamp getCreatedStamp() {
		return this.createdStamp;
	}

	public void setCreatedStamp(Timestamp createdStamp) {
		this.createdStamp = createdStamp;
	}

	public Timestamp getLastUpdatedStamp() {
		return this.lastUpdatedStamp;
	}

	public void setLastUpdatedStamp(Timestamp lastUpdatedStamp) {
		this.lastUpdatedStamp = lastUpdatedStamp;
	}

	public Set<SenderReceiverMessageRel> getSenderReceiverMessageRels() {
		return senderReceiverMessageRels;
	}

	public void setSenderReceiverMessageRels(
			Set<SenderReceiverMessageRel> senderReceiverMessageRels) {
		this.senderReceiverMessageRels = senderReceiverMessageRels;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getStartst() {
		return startst;
	}

	public void setStartst(Long startst) {
		this.startst = startst;
	}

	public Long getEndst() {
		return endst;
	}

	public void setEndst(Long endst) {
		this.endst = endst;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getEditor() {
		return editor;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public String getMessageStringEn() {
		return messageStringEn;
	}

	public void setMessageStringEn(String messageStringEn) {
		this.messageStringEn = messageStringEn;
	}

	public String getOrg() {
		return org;
	}

	public void setOrg(String org) {
		this.org = org;
	}

	public String getTitleEn() {
		return titleEn;
	}

	public void setTitleEn(String titleEn) {
		this.titleEn = titleEn;
	}



}